<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="print1()">
    点我一下
</button>
<button onclick="print()">
    打印页面
</button>
<button onclick="print2()">
    下载
</button>
<script>
    function print1() {
        alert("nihao");
        prompt("请输入你的名字")
    }

</script>
<script src="../Js/Demo01.js"></script>
</body>
</html>